package com.jhsw.roadsun.module.business.config;

import com.jhsw.roadsun.framework.swagger.config.RoadsunSwaggerAutoConfiguration;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * web 组件的 Configuration
 *
 * @author Y.sugar
 * @since 2024/3/27 16:19
 */
@Configuration(proxyBeanMethods = false)
public class BusinessWebConfiguration {

    /**
     * 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi backBusinessBootGroupedOpenApi() {
        return RoadsunSwaggerAutoConfiguration.buildGroupedOpenApi("business");
    }

    /**
     * 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi appBusinessBootGroupedOpenApi() {
        return RoadsunSwaggerAutoConfiguration.buildGroupedOpenApi("biz");
    }
}
